package com.young.nyd.service;

import com.young.common.util.Page;
import com.young.nyd.model.UviListhazardous;
import java.util.List;

/**
* 有害物质清单服务接口
* Created by  on 2018-10-19.
*/
public interface IUviListhazardousService {

    /**
     * 查询
     * @param obj
     * @return
     * @throws Exception
     */
    List<UviListhazardous> getList(UviListhazardous obj) throws Exception;

    /**
     * 分页查询
     * @param obj
     * @param page
     * @return
     * @throws Exception
     */
    List<UviListhazardous> getPage(UviListhazardous obj, Page page) throws Exception;

    /**
     * 查询单条
     * @param id
     * @return
     * @throws Exception
     */
    UviListhazardous get(String id) throws Exception;

    /**
     * 统计数量
     * @param obj
     * @return Integer 满足xx条件的数据有多少条
     * @throws Exception
     */
    int count(UviListhazardous obj) throws Exception;

    /**
     * 修改
     * @param obj
     * @return
     * @throws Exception
     */
    int update(UviListhazardous obj) throws Exception;

    /**
     * 删除
     * @param id
     * @return
     * @throws Exception
     */
    int delete(String id) throws Exception;

    /**
     * 批量删除
     * @param idArr
     * @return
     * @throws Exception
     */
    int delete(String[] idArr) throws Exception;

    /**
     * 插入
     * @param obj
     * @return
     * @throws Exception
     */
    int insert(UviListhazardous obj) throws Exception;

    /**
     * 批量插入
     * @param list
     * @return
     * @throws Exception
     */
    int batchInsert(List<UviListhazardous> list) throws Exception;

}